package com.jarvis.dubbo.spi;

import org.apache.dubbo.common.URL;
import org.apache.dubbo.common.extension.ExtensionLoader;

/**
 * 示例
 *
 * @author jarvis create by 2020/9/24
 */
public class CustomSPIDEMO {
    public static void main(String[] args) {
        TestService spi = ExtensionLoader.getExtensionLoader(TestService.class).getAdaptiveExtension();
        URL url = URL.valueOf("test://localhost/demo?test.service=null");
        System.out.println(spi.test(url));
    }
}
